package com.think.teaching.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.ActionData;
import com.think.teaching.model.ActionData;

/**
 * 事件数据
 * @author 赵兴
 * 2020-11-12
 */
public interface ActionDataService  extends IService<ActionData>{

	ActionData AddActionData(ActionData actionData);

	ActionData UpdateActionData(ActionData actionData);

	ActionData GetActionData(Integer id,Boolean withoutBan);

	List<ActionData> ListActionDataSearch(String key , Integer type, Boolean withoutBan);

	ActionData SetActionDataState(Integer id, Integer state);

	IPage<ActionData> ListActionDataWithType( Integer count, Integer page, Integer type,
			Boolean withoutDelete);
	
	ActionData GetActionDataByType(Integer typeId);
}
